cpuidle: use stime to count c-state residency in NONSTOP_TSC case
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Jun 2010 07:51:25 +0000 (08:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Jun 2010 07:51:25 +0000 (08:51 +0100)
commitcbfacd749c2522ef3645db7bbe7e6c0f214eea6d
treed0b09c061e542fcd6e852ccfffe253724ecb6326
parent3358e0fe7f94b4f6bf8cdbaffa86693939e3fec5
cpuidle: use stime to count c-state residency in NONSTOP_TSC case

stime is based on tsc, with far less access cost than PM timer. So for
processors w/ NONSTOP_TSC, using stime instead of PM timer. This could
reduce idle overheads and save power.

Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/arch/x86/acpi/cpu_idle.c